package com.czk.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author:ChenZhangKun
 * @Date: 2021/5/20 16:38
 */
@RestController
@RequestMapping("/side")
public class SideCarController {
    @Value(
            "${server.port}"
    )
    private String port;

    @GetMapping("/car")
    public String sideCar() {
        System.out.println("成功");
        return "sideCar调用成功,端口号" + port;
    }
}
